package com.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crm.DTO.BusinessTaskDto;
import com.crm.entity.RulePool;
import com.crm.entity.system.SysNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface RulePoolMapper extends BaseMapper<RulePool> {
    /**
     * 查询所有任务
     *
     * @return
     */

    ArrayList<BusinessTaskDto> businessTaskList();

    /**
     * 批量转移到公海
     * @param ids
     * @param transfer
     */
    void businessToSea(@Param("ids") ArrayList<BusinessTaskDto> ids, int transfer);


}
